import request from '@/utils/request'

export function listmonitorHead(query) {
  return request({
    url: '/monitorHead/list',
    method: 'get',
    params: query
  })
}

export function createmonitorHead(data) {
  return request({
    url: '/monitorHead/create',
    method: 'post',
    data
  })
}

export function readmonitorHead(data) {
  return request({
    url: '/monitorHead/get/' + data.id,
    method: 'get'
  })
}

export function updatemonitorHead(data) {
  return request({
    url: '/monitorHead/update',
    method: 'post',
    data
  })
}

export function deletemonitorHead(data) {
  return request({
    url: '/monitorHead/delete/' + data.fmonitorno,
    method: 'delete'
  })
}
